CMAKE_MINIMUM_REQUIRED(VERSION 3.0)


include_directories(include)

aux_source_directory(src SOURCE)
FILE(GLOB HEADER "include/*.h")

add_library(comn STATIC ${SOURCE} ${HEADER})

set_target_properties(comn PROPERTIES DEBUG_POSTFIX "d")
set_property(TARGET comn PROPERTY POSITION_INDEPENDENT_CODE TRUE)

option(COMN_DEMO "include demo" OFF)

if (COMN_DEMO)
	add_subdirectory(demo)
	add_subdirectory(test)
endif()
